<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="html-el" uri="http://struts.apache.org/tags-html-el" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<form id="TeacherUpdateForm" name="TeacherUpdateForm" method="post" action="updateTeacher.do?method=update">
  <input type="hidden" name="id" value="${teacher.id }"/>
  <label>密码
  <input type="password" name="oldPassword" id="oldPassword" />
  </label>
  <label>请再输一遍密码
  <input type="password" name="password" id="password" />
  </label>
  <label>电子邮箱
  <input type="text" name="email" value="${teacher.account.email }" id="email" />
  </label>
  <label>电话
  <input type="text" name="telephone" value="${teacher.account.telephone }"  id="telephone" />
  </label>
  
学院
<select id="school" name="school" >
  <c:forEach items="${page.list}" var="item">
    <option value="${item.id}" ${teacher.school.id eq item.id ? "selected=\"selected\"" : " " }>${item.name }</option>
  </c:forEach>
</select>
<input type="submit" value="提交"/>

  
</form>
</body>
</html>